package com.zyl.blog.common.strategy;

import com.zyl.blog.common.annotation.Sensitive;
/**
 * 脱敏策略接口
 * 所有脱敏策略都需要实现此接口
 * @version v1.0
 * @ProjectName: Personal_Blog_Server
 * @Package: com.zyl.blog.common.strategy
 * @ClassName: SensitiveStrategy
 * @Description:
 * @Author FinalFantasy
 * @Date 2025/9/8-10:20
 */
public interface SensitiveStrategy {

    /**
     * 执行脱敏
     *
     * @param value 原始值
     * @param annotation 脱敏注解
     * @return 脱敏后的值
     */
    String desensitize(String value, Sensitive annotation);
}
